<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    use HasFactory;

    public static function getName()
    {
        $user = User::find(1);
        echo "<p>5、我是user模型,我取出了：" . $user->name . "</p>";
        return $user->name;
    }
}
